import Vue from "vue";
// import Router from "vue-router";
// import Router from "./vuerouter/index";//注意:这里导入的是自己定义的路由规则
import Router from "./my-vue-router/index";//注意:这里导入的是自己定义的路由规则
import Login from "./components/Login.vue";
import Home from "./components/Home.vue";
import About from "./components/About.vue";
import Users from "./components/Users";
Vue.use(Router);
export default new Router({
  mode: "hash",
  routes: [
    { path: "/", component: Home },
    { path: "/login", component: Login },
    {path:'/about',component:About,children:[
      {path:'users',component:Users}
    ]}
  ],
});
